package com.xzx.shop_front_api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * 评论实体类
 */
@Component
@Data
@TableName("shop_comments")
public class Comment {
    @TableId(type = IdType.AUTO)
    private Long id;
    @Column(name = "goods_id")
    private int goodsId;
    @Column(name = "member_id")
    private int memberId;
    @Column(name = "created_time")
    private int createdTime;

    private String content;

    @Column(name = "desc_score")
    private int descScore;

    @Column(name = "logic_score")
    private int logicScore;

    @Column(name = "shopper_score")
    private int shopperScore;

    private String img;

    private int status;
}
